import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { CommonModule } from '@angular/common';
import { FormsModule } from '@angular/forms';
import { CompanyProductInvolvementComponent } from './companyProductInvolvement.component';
import { CompanyInvolvementPipe } from './companyInvolvement.pipe';
import { CompanyReportDownloadModule } from '../shared/companyHeader/companyReportDownload/companyReportDownload.module';
import { ModalModule } from '../../../../shared/components/modal/modal.module';

const routes: Routes = [
    {
        path: '',
        component: CompanyProductInvolvementComponent
    },
    { loadChildren: './companyProductInvolvement.widget#WidgetModule' } //added to route so we generate a chunk for it
]

/**
 * Company product involvement module
 *
 * Author: Sorin Spiru
 * Date: 13.01.2018
 */
@NgModule({    
    imports: [
        CommonModule,
        FormsModule,
        ModalModule,
        RouterModule.forChild(routes),
        CompanyReportDownloadModule
    ],
    declarations: [
        CompanyInvolvementPipe,
        CompanyProductInvolvementComponent
    ]
})
export class CompanyProductInvolvementModule { }
